A signal is emitted when the output changes so don't set it right away
as the stream might change port.
This also brings set_default_source in line with set_default_sink()
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31
Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34
Bug-Debian: https://bugs.debian.org/
1126514
Applied-upstream: gnome-shell 50, commit:
798230599950607ec285daecd070f5bcb28580e4
Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Let-source-update-handle-active-output-chan.patch
gvc_mixer_control_set_default_source (GvcMixerControl *control,
GvcMixerStream *stream)
{
- GvcMixerUIDevice* input;
pa_operation *o;
g_return_val_if_fail (GVC_IS_MIXER_CONTROL (control), FALSE);
pa_operation_unref (o);
- /* source change successful, update the UI. */
- input = gvc_mixer_control_lookup_device_from_stream (control, stream);
- g_signal_emit (G_OBJECT (control),
- signals[ACTIVE_INPUT_UPDATE],
- 0,
- gvc_mixer_ui_device_get_id (input));
-
return TRUE;
}